<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>车生活</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="车生活"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">
  <style type="text/css">
.am-tab-panel img{width: 100%}
blockquote{border-left: 0px;font-size: 13px;color: #F37B1D;padding-top: 0px;padding-bottom: 0px;}
  </style>

</head>
<body>
<header data-am-widget="header" class="am-header am-header-default">
  <div class="am-header-left am-header-nav">
    <a href="javascript:history.go(-1)" class="">
      <i class="am-header-icon am-icon-chevron-left"></i>
    </a>
  </div>
  <h1 class="am-header-title">
    <a href="#title-link" class="">评论详情</a>
  </h1>
  <div class="am-header-right am-header-nav">
    <a href="javascript: void(0)" id="nav_click" class="">
      <i class="am-menu-toggle-icon am-icon-th-large am-icon-sm"></i>
    </a>
  </div>
</header>

<div style="height: 50px;"></div>
<div class="am-g am-g-collapse">
  <div class="am-u-sm-12">
    <div class="am-thumbnail am-sj-title-img">
      <img src="assets/i/union/limo/title.jpg" class="am-img-responsive" alt=""/>
      <h3 class="am-thumbnail-caption am-sj-title-text">德国力魔汽车养护专家<div class="am-fr"><span class="am-icon-star-o" isSc="no" id="sc">收藏</span></div></h3>
    </div>
  </div>
 </div> 

<div class="am-g am-sj-title-address">
  <div class="am-u-sm-9">
    <span class="am-icon-map-marker am-icon-sm"> 广州市润德汽车用品中心2栋17号</span>
  </div>
  <div class="am-u-sm-3 am-pagination-right">
    <a class="am-badge am-badge-danger  am-radius" href="map.html">地图查看</a>&nbsp;
  </div>  
    <div class="am-u-sm-12">
      <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
    </div>
    <div class="am-u-sm-6">
        <button class="am-btn am-btn-secondary am-radius am-btn-block" data-am-modal="{target: '#bodatel'}">
          <i class="am-icon-phone"></i>电话
        </button>
    </div>
    <div class="am-u-sm-6">
      <li data-am-navbar-share>
        <button class="am-btn am-btn-secondary am-radius am-btn-block"  data-am-modal="{target: '#fenxiang'}">
          <i class="am-icon-share-alt"></i>分享
        </button>
      </li>  
    </div>    
 </div> 

<div class="am-modal-actions" id="bodatel">
  <div class="am-modal-actions-group">
    <ul class="am-list">
      <li class="am-modal-actions-header">拨打电话</li>
      <li><a href="tel:13888888888">138 8888 8888</a></li>
      <li><a href="tel:076985543321">0769 8554 3321</a></li>
    </ul>
  </div>
  <div class="am-modal-actions-group">
    <button class="am-btn am-btn-secondary am-btn-block" data-am-modal-close>取消</button>
  </div>
</div>

<div class="am-modal-actions" id="fenxiang">
  <div class="am-modal-actions-group">
    <ul class="am-list">
      <li>
        <a href="#"><i class="am-icon-wechat"></i> 分享给微信好友</a>
      </li>
      <li>
        <a href="#"><i class="am-icon-weixin"></i> 分享到朋友圈</a>
      </li>
      <li class="am-modal-actions-danger">
        <a href="#"><i class="am-icon-weibo"></i> 分享到微博</a>
      </li>
    </ul>
  </div>
  <div class="am-modal-actions-group">
    <button class="am-btn am-btn-secondary am-btn-block" data-am-modal-close>取消</button>
  </div>
</div>

 <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
		
<!---------------------------------------评论区------------------------------------------->
<div class="am-panel am-panel-default am-detail-pinglun">
  <div class="am-panel-hd">
  	消费评价
  	<div class="am-star-color">
  		<span class="am-icon-star"></span>
  		<span class="am-icon-star"></span>
  		<span class="am-icon-star"></span>
  		<span class="am-icon-star"></span>
  		<span class="am-icon-star-half-o"></span> 
  		4.5
  	</div>
  </div>
  
<div class="am-panel-bd">
   	
<script type="text/x-handlebars-template" id="pinglun-tpl">
  
  {{>pinglun pinglun}}
  
</script>
<div id="get_pinglun"></div>
  </div>
  <div class="am-panel-footer am-text-center">
  	<a href="javascript:;" id="get_more"><button class="am-btn am-btn-primary">查看更多</button></a>
  </div>
</div>


<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
  <a href="#top" title="回到顶部">
    <span class="am-gotop-title">回到顶部</span>
    <i class="am-gotop-icon am-icon-chevron-up"></i>
  </a>
</div>

<div style="height: 70px"></div>
<script type="text/x-handlebars-template" id="amz-tpl">
  {{>menu menu}}
  {{>footer footer}}
  {{>navbar navbar}}
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
<script src="assets/js/pinglun.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript">
getPinglun();

$(function(){
	var n = $(".star").html();
	var n = parseInt(n);
    
    $("#get_more").on('click', function(){
    	getPinglun();
    });
    
    $("#sc").click(function(){
        if($(this).attr("isSc") == "no"){
            $(this).attr("isSc","yes");
            $(this).html("已收藏");
            $("#sc").removeClass('am-icon-star-o').addClass('am-icon-star');
        }else if($(this).attr("isSc") == "yes"){
            $(this).attr("isSc","no");
            $(this).html("收藏");
            $("#sc").removeClass('am-icon-star').addClass('am-icon-star-o');
        }
    });
 });
   
</script>
</body>
</html>
